/* 播放器页面整体样式 */
.video-player-page {
  background-color: #1a1a1a;
  min-height: calc(100vh - 60px); /* 减去导航栏高度 */
  padding: 20px;
  box-sizing: border-box;
}

/* 视频容器 */
.video-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

/* 视频元素 */
.video-element {
  width: 100%;
  height: auto;
  display: block;
}

/* 中央播放按钮 */
.big-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* 控制栏 */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* 进度条 */
.progress-bar {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  margin-bottom: 8px;
}
.progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}

/* 时间显示 */
.time-display {
  color: white;
  font-size: 14px;
  text-align: right;
}

/* 错误提示样式 */
.video-error {
  color: white;
  text-align: center;
  padding: 50px 20px;
  max-width: 600px;
  margin: 0 auto;
}

/* 返回按钮样式 */
.back-button, .back-to-courses {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 20px;
}
.back-to-courses {
  display: block;
  margin: 20px auto 0;
}